package com.demo.dialet;

public abstract class Dialect {
	public boolean supportsLimit() {
		return false;
	}

	public boolean supportsLimitOffset() {
		return supportsLimit();
	}
	
	public abstract String getLimitString(String sql, int skipResults, int maxResults);

	public String getCountString(String sql) {
		return "select count(1) as count from (" + sql + ") temp_table_count";
	}
	
	public abstract String getOffsetString(String sql, String id, String name);
}